<form id="edit-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">
    <div class="form-group" data-favisible="pid!=0">
        <label class="control-label col-xs-12 col-sm-2">{:__('Pid')}:</label>
        <div class="col-xs-12 col-sm-8">
            <select id="c-pid" data-rule="required" class="form-control selectpicker" name="row[pid]">
                <option value="0" {in name="0" value="$row.pid" }selected{/in}>顶级</option>
                {foreach name="list" item="vo"}
                <option value="{$vo.id}" {in name="$vo.id" value="$row.pid" }selected{/in}>{$vo.title}</option>
                {/foreach}
            </select>
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Title')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-title" class="form-control" name="row[title]" type="text" value="{$row.title|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('类型')}:</label>
        <div class="col-xs-12 col-sm-8">
            {:build_radios('row[type]', ['0'=>__('寄付'), '1'=>__('到付')], $row['type'])}
        </div>
    </div>
   <div class="form-group" data-favisible="pid!=0">
        <label class="control-label col-xs-12 col-sm-2">{:__('起送重量')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-weight" min="0" class="form-control" step="0.01" name="row[weight]" type="number"
                value="{$row.weight|htmlentities}" data-tip="">
        </div>
    </div>
    <!--  <div class="form-group" data-favisible="pid!=0">
        <label class="control-label col-xs-12 col-sm-2">{:__('超重费用')}:</label>
        <div class="col-xs-12 col-sm-3">
            <input id="c-expense" min="0" class="form-control" step="0.01" name="row[expense]" type="number"
                value="{$row.expense|htmlentities}" data-tip="超出重量按每斤收费，不足1斤的按1斤收费，无需配送费则为0">
        </div>
    </div>
    <div class="form-group" data-favisible="pid!=0">
        <label class="control-label col-xs-12 col-sm-2">{:__('特殊区域超重费用')}:</label>
        <div class="col-xs-12 col-sm-3">
            <input id="c-special_expense" min="0" class="form-control" step="0.01" name="row[special_expense]" type="number"
                value="{$row.special_expense|htmlentities}" data-tip="超出重量按每斤收费，不足1斤的按1斤收费，无需配送费则为0">
        </div>
    </div>
    <div class="form-group" data-favisible="pid!=0">
        <label class="control-label col-xs-12 col-sm-2">{:__('起送费')}:</label>
        <div class="col-xs-12 col-sm-3">
            <input id="c-send_fee" min="0" class="form-control" step="0.01" name="row[send_fee]" type="number"
                value="{$row.send_fee|htmlentities}" data-tip="无需配送费则为0">
        </div>
    </div>
    <div class="form-group" data-favisible="pid!=0">
        <label class="control-label col-xs-12 col-sm-2">{:__('特殊区域起送费')}:</label>
        <div class="col-xs-12 col-sm-3">
            <input id="c-special_send_fee" min="0" class="form-control" step="0.01" name="row[special_send_fee]" type="number"
                value="{$row.special_send_fee|htmlentities}" data-tip="无需特殊区域起送费则为0">
        </div>
    </div>
    <div class="form-group" data-favisible="pid!=0">
        <label class="control-label col-xs-12 col-sm-2">{:__('发货天数')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-day" min="0" class="form-control" step="0" name="row[day]" type="number"
                value="{$row.day|htmlentities}">
        </div>
    </div> -->
    <div class="form-group layer-footer">
        <label class="control-label col-xs-12 col-sm-2"></label>
        <div class="col-xs-12 col-sm-8">
            <button type="submit" class="btn btn-primary btn-embossed disabled">{:__('OK')}</button>
            <button type="reset" class="btn btn-default btn-embossed">{:__('Reset')}</button>
        </div>
    </div>
</form>